﻿using System;
using System.Web.UI.WebControls;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;

namespace Navigant.Web.UI
{
    public class PreservationNoticesHistory : LayoutsPageBase
    {
        protected PlaceHolder history;

        protected override void OnPreInit(EventArgs e)
        {
            using (SPWeb web = SPControl.GetContextSite(this.Context).OpenWeb())
            {
                this.Page.MasterPageFile = web.MasterUrl;
            }
        }

        protected override void OnLoad(EventArgs e)
        {
            this.history.Controls.Add(new PreservationNoticeHistoryWebPart());
        }
    }
}
